<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>打印金字塔</title>
</head>
<style>
    body{
        font-family: "微软雅黑";
        font-size: 18px;
    }
</style>
<body>
<script>
    //用js做出一个金字塔形状
    for(var e = 0; e <= 8;e++){
        for(var r = 0; r < 8-e+1;r++){
            document.writeln("&nbsp;&nbsp;&nbsp;&nbsp;");
        }
        for(var t = 0; t < 2*e-1;t++){
            document.writeln("@");
        }
        document.writeln("<br/>");
    }

</script>

</body>
</html>